﻿using System;
using System.ComponentModel.DataAnnotations;
using Viettel.VOFFICE.DAO.Models;

namespace Viettel.VOFFICE.Web.Models
{
    public class AttachmentModel
    {
        public AttachmentModel() { }
        public AttachmentModel(Attachment attachment) { }

        public int Id { get; set; }
        [Required]
        [Range(1, int.MaxValue)]
        public int ObjectId { get; set; }
        public byte ObjectType { get; set; }
        public string FileName { get; set; }
        [Required]
        public string FilePath { get; set; }
        public string DocPath { get; set; }
        public string PdfPath { get; set; }
        public string ImgPath { get; set; }
        public string HtmlPath { get; set; }
        public DateTime CreatedAt { get; set; }
        public DateTime UpdatedAt { get; set; }
        public bool IsDeleted { get; set; }
        public Guid? DeletedById { get; set; }
        public Guid? CreatorId { get; set; }
    }
}